Optimal. Leaf size=53 \[ -\frac {A \sqrt {a+b x^2}}{3 a x^3}+\frac {(2 A b-3 a B) \sqrt {a+b x^2}}{3 a^2 x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {464, 270}
\begin {gather*} \frac {\sqrt {a+b x^2} (2 A b-3 a B)}{3 a^2 x}-\frac {A \sqrt {a+b x^2}}{3 a x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 464
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x^4 \sqrt {a+b x^2}} \, dx &=-\frac {A \sqrt {a+b x^2}}{3 a x^3}-\frac {(2 A b-3 a B) \int \frac {1}{x^2 \sqrt {a+b x^2}} \, dx}{3 a}\\ &=-\frac {A \sqrt {a+b x^2}}{3 a x^3}+\frac {(2 A b-3 a B) \sqrt {a+b x^2}}{3 a^2 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 40, normalized size = 0.75 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-a A+2 A b x^2-3 a B x^2\right )}{3 a^2 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 58, normalized size = 1.09
method | result | size |
gosper | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-2 A b \,x^{2}+3 B a \,x^{2}+A a \right )}{3 a^{2} x^{3}}\) | \(36\) |
trager | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-2 A b \,x^{2}+3 B a \,x^{2}+A a \right )}{3 a^{2} x^{3}}\) | \(36\) |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-2 A b \,x^{2}+3 B a \,x^{2}+A a \right )}{3 a^{2} x^{3}}\) | \(36\) |
default | \(A \left (-\frac {\sqrt {b \,x^{2}+a}}{3 a \,x^{3}}+\frac {2 b \sqrt {b \,x^{2}+a}}{3 a^{2} x}\right )-\frac {B \sqrt {b \,x^{2}+a}}{a x}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 56, normalized size = 1.06 \begin {gather*} -\frac {\sqrt {b x^{2} + a} B}{a x} + \frac {2 \, \sqrt {b x^{2} + a} A b}{3 \, a^{2} x} - \frac {\sqrt {b x^{2} + a} A}{3 \, a x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.86, size = 34, normalized size = 0.64 \begin {gather*} -\frac {{\left ({\left (3 \, B a - 2 \, A b\right )} x^{2} + A a\right )} \sqrt {b x^{2} + a}}{3 \, a^{2} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.96, size = 70, normalized size = 1.32 \begin {gather*} - \frac {A \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{3 a x^{2}} + \frac {2 A b^{\frac {3}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{3 a^{2}} - \frac {B \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 120 vs.
\(2 (45) = 90\).
time = 1.23, size = 120, normalized size = 2.26 \begin {gather*} \frac {2 \, {\left (3 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} B \sqrt {b} - 6 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} B a \sqrt {b} + 6 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} A b^{\frac {3}{2}} + 3 \, B a^{2} \sqrt {b} - 2 \, A a b^{\frac {3}{2}}\right )}}{3 \, {\left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.29, size = 35, normalized size = 0.66 \begin {gather*} -\frac {\sqrt {b\,x^2+a}\,\left (A\,a-2\,A\,b\,x^2+3\,B\,a\,x^2\right )}{3\,a^2\,x^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________